<extend name="Public/base"/>
<block name="rightbox">
    <div class="rightbox">
        <div class="right_top">
            <img src="__IMG__/right_top.png">
            <div class="right_title"><font size="6" color="#c78548">用户日志</font></div>
        </div>
        <div class="right_m">
            <div class="right_main_1">
                <div class="right_main_m1">
                    <form actio="{:U('User/action')}" method="get">
                        <div class="select-2">
                            <select name="typeId">
                                <option value="0">所有日志</option>
                                <option value="1">登录日志</option>
                                <option value="2">退出日志</option>
                            </select>
                            <input type="text" name="username" placeholder="请输入用户名" value="{:I('get.username')}">
                            <input type="submit" value="搜索">
                        </div>
                    </form>
                </div>
                <div class="table1">
                    <table class="table table-bordered">
                        <tr>
                            <td>ID</td>
                            <td> 用户名</td>
                            <td>时间</td>
                            <td>操作</td>
                        </tr>
                        <notempty name="_list">
                            <volist name="_list" id="vo" empty="对不起，暂时没有查询到您所查询的数据">
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td>{$vo.user_id|getUsernameByUid}</td>
                                    <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                                    <td>{$vo.action}</td>
                                </tr>
                            </volist>
                            <else/>
                            <tr><td colspan="3">对不起，暂时还没有数据哦</td></tr>
                        </notempty>
                    </table>
                    {$_page}
                </div>
            </div>
        </div>
    </div>
</block>
<block name="script">
    <script>
        highlight_subnav('{:U('User/action')}');
        Think.setValue("typeId",{:I('get.typeId')});
    </script>
</block>